public class Demo04 {
    public static void main(String[] args) {
        float sum=0l;
        for(int i=1;i<=100;i++){
            if(i%2!=0){
                sum-=1/i;
            }else{
                sum+=1/i;
            }
        }
        System.out.println(sum);
    }
}
